#pragma once
#include <afxwin.h>
#include "afxtempl.h"
#include "dxflib/dl_dxf.h"
#include "dxflib/dl_creationadapter.h"
#include "DxfLineVector.h"

// CDxfViewer

class CDxfLineViewer : public CStatic
{
	DECLARE_DYNAMIC(CDxfLineViewer)

public:
	CDxfLineViewer();
	virtual ~CDxfLineViewer();

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnPaint();

public:
    void DxfLines(const DxfImage& val);
    int ShowMat( cv::Mat img);
	void ShowAxis(bool val) { m_isShowAxis = val; }
    void ShowNumber(bool val, bool isCalCentrePoint = false) { m_isShowOrder = val; m_isCalCenterPoint = isCalCentrePoint;}
    void CutterType(int val) { m_nCutterType = val; }
    void CurrentLine(int val) { m_nCurrentLine = val; }
    void AutoZoom(bool val) { m_isAutoZoom = val; }
private:
    DxfImage m_vLines;
	bool m_isShowAxis;
	bool m_isCalCenterPoint;
    bool m_isShowOrder;
    int  m_nCutterType;
    int  m_nCurrentLine;
    bool  m_isAutoZoom;    
};


